package com.shoulei.designpattern.commandPattern;

/**
 * @ClassName:Stock
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 17:14
 * @Verson:
 */
public class Stock {
    private String name = "ABC";
    private int quantity = 10;
    public void buy(){
        System.out.println("Stock [ name"+name+",quantity : "+ quantity+"] bought");
    }
    public void sell(){
        System.out.println("Stock [name:"+name+",quantity:"+quantity+"] sold");
    }
}
